package com.jyu.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.intellij.lang.annotations.Pattern;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;

import java.time.LocalDateTime;

@Data
@TableName("tb_position")
public class Position {
    private Integer id;
    private String jobTitle;
    private String companyName;
    private String scale;
    private String eduRequire;
    private String workplace;
    private String experience;
    private String salary;
    private String field;
    private String url;

    @TableField(exist = false)
    private Integer maxSalary;

    @TableField(exist = false)
    private Integer minSalary;


    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT) //插入时填充字段
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE) //插入和更新时填充字段
    private LocalDateTime updateTime;

}
